<?php

namespace app\school\controller;

use app\common\controller\BasicAdmin;
use app\common\model\BrandModel;


/**
 * Class Brand
 * @package app\sunshine\controller
 */
class Brand extends BasicAdmin
{
    /**
     * 品牌管理
     */
    public function index()
    {
        $this->title = '品牌管理';
        if ($this->request->isPost()) {
            $intro = $this->request->post('intro');
            (new BrandModel())->save([
                'intro'=>$intro,
            ],['id'=>1]);
            $this->success('保存成功！');
        }
        $brand = BrandModel::where('id',1)->find();
        $this->assign('vo',$brand);
        $this->fetch();
    }

}
